# 1、占位符%
s = """-----info-----
name:%s
age:%s
work:%s
-----end-----
"""
print(s % ('w', 20, 'd'))

s1 = '学习进度%d%%'
print(s1 % 52)

# 2、f
d = '52%'
s2 = f'学习进度{d}'  # python3.6以后支持
print(s2)

a = f'{1}{2}{3}'
print(a)
print(f'{22}')